package com.gyg.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class ThreadPoolService3 {

    @Async
    public void executeAsync3() {
        log.info("executeAsync3..当前线程名：" + Thread.currentThread().getName());
    }

    @Async("myThreadPool01")
    public void executeAsync4() {
        log.info("executeAsync4..当前线程名：" + Thread.currentThread().getName());
    }

}
